package casa.depesos.app.com.http;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public abstract class BaseBean {

    @SerializedName("resCode")
    @Expose
    private int code;

    @SerializedName("retMsg")
    @Expose
    public String msg;

    public void parseData() {

    }

    public boolean showErrMsg() {
        return true;
    }

    public boolean isValid() {
        return code == 0;
    }

    public boolean isTokenExpired() {
        return code == 111111;
    }
}
